package cyou.breathe.config;

import cyou.breathe.chain.AbstractChainContext;
import cyou.breathe.strategy.AbstractStrategyChoose;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author: breathe
 * @createTime: 2025-06-16
 */
@Configuration
public class DesignPatternAutoConfiguration {
    /**
     * 策略模式选择器
     */
    @Bean
    public AbstractStrategyChoose abstractStrategyChoose() {
        return new AbstractStrategyChoose();
    }

    /**
     * 责任链上下文
     */
    @Bean
    public AbstractChainContext abstractChainContext() {
        return new AbstractChainContext();
    }
}
